home *** CD-ROM | disk | FTP | other *** search
- /* BUTTON.H Button is text in Frame. It can be used as "pressable" object.
- There can be more then one strings in the text, '\n' is
- the return delimiter. Rectangle is in TEXT coordinates
- */
-
- #ifndef __BUTTON_H_
- #define __BUTTON_H_
-
- #include "press.h"
- #include <string.h>
-
- class Button : public Press
- {
- protected:
- char* text; // button text
- int pattern;
- public:
- Button(rect r, char* txt, BORDERS b_type = BUTTON_BORDER,
- int pat = 0);
- virtual ~Button() { delete text; }
- virtual void show();
- };
-
- #endif __BUTTON_H_